﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 用户聊天群
    ///</summary>
    [SugarTable("lar_group")]
    public class LarGroup
    {
        /// <summary>
        /// 群ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 创建者ID(群主ID) 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="creator_id"    )]
         public int CreatorId { get; set; }
        /// <summary>
        /// 群名称 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="group_name"    )]
         public string GroupName { get; set; }
        /// <summary>
        /// 群介绍 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="profile"    )]
         public string Profile { get; set; }
        /// <summary>
        /// 是否已解散[0:否;1:是;] 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "is_dismiss")]
        public byte IsDismiss { get; set; } = 0;
        /// <summary>
        /// 群头像 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="avatar"    )]
         public string Avatar { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
        [SugarColumn(ColumnName = "created_at")]
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
        /// <summary>
        /// 最大群成员数量 
        /// 默认值: 200
        ///</summary>
         [SugarColumn(ColumnName="max_num"    )]
         public string MaxNum { get; set; }
        /// <summary>
        /// 是否公开可见[0:否;1:是;] 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "is_overt")]
        public byte IsOvert { get; set; } = 0;
        /// <summary>
        /// 是否全员禁言 [0:否;1:是;]，提示:不包含群主或管理员 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "is_mute")]
        public byte IsMute { get; set; } = 0;
        /// <summary>
        /// 解散时间 
        ///</summary>
         [SugarColumn(ColumnName="dismissed_at"    )]
         public DateTime? DismissedAt { get; set; }
    }
}
